package com.kedacom.ctsp.authz.oauth2;


import com.kedacom.ctsp.authz.oauth2.core.JWTConfigProperties;
import com.kedacom.ctsp.authz.security.AuthzSecurityProperties;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.boot.web.support.SpringBootServletInitializer;

/**
 * @author sunchenjie
 * @date 2017/11/22 0022
 */
@SpringBootApplication
@EnableConfigurationProperties({JWTConfigProperties.class,OAuth2ServerProperties.class, AuthzSecurityProperties.class})
public class OAuth2ServerApplication extends SpringBootServletInitializer {
    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(OAuth2ServerApplication.class);
    }

    public static void main(String[] args) {
        SpringApplication.run(OAuth2ServerApplication.class);
    }

}
